package com.net.xpay.core;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 2020/4/25 11:37

 * 核心配置属性
 */
@Configuration
@Getter
@Setter
@PropertySource(value = "classpath:/xpay-core-config/application-${spring.profiles.active}.properties", encoding="UTF-8")
@ConfigurationProperties(prefix = "xpay.core")
public class CoreProperties {

    //充值支付宝收款账号
    public  String alipayReceiveAccount;

    //充值支付宝收款实名
    public String alipayReceiveName;


    /**
     * oss 对象存储配置
     */
    public String ossUploadDir;

    public String ossAccessKey;

    public String ossSecretKey;

    public String ossRegion;

    public String ossChannel;

    //短信签名
    public String softSmsSignature;

    //短信秘钥
    public String softSmsAppkey;

    //短信备注
    public Integer softSmsTemplateId;

    /**
     * 企业微信机器人通知地址
     */
    //系统监控
    public String systemMonitorWebhook;
    //系统通知
    public String systemInfoWebhook;
    //审核通知
    public String auditWebhook;


    /**
     * web
     */
    public String tomcatUploadDir;

    //收集收款基础域名
    public String mobileDomain;

    //扫码充值回调地址
    public String commonPayNotifyUrl;

    //充值回跳地址
    public String commonPayReturnUrl;

    //是否禁用批量有密的支付宝客户端
    public Integer disableAlipayClient;

}
